package com.yzk.auction.entity;

import java.util.Date;

/**
 * @author： lys
 * @date： 2020/8/19 22:59
 * @类名： Bidding
 * @Title： 拍卖信息
 */

public class Bidding {
    private int bidding_id;         //拍卖id
    private int bidding_status;     //竞买状态(0出局 1领先)
    private int user_id;            //竞买用户id
    private double bidding_price;   //竞拍价格
    private Date bidding_time;      //竞拍时间
    private int goods_id;           //商品id

    public Bidding() {
    }

    public Bidding(int bidding_status, int user_id, double bidding_price, Date bidding_time, int goods_id) {
        this.bidding_status = bidding_status;
        this.user_id = user_id;
        this.bidding_price = bidding_price;
        this.bidding_time = bidding_time;
        this.goods_id = goods_id;
    }

    public Bidding(int bidding_id, int bidding_status, int user_id, double bidding_price, Date bidding_time, int goods_id) {
        this.bidding_id = bidding_id;
        this.bidding_status = bidding_status;
        this.user_id = user_id;
        this.bidding_price = bidding_price;
        this.bidding_time = bidding_time;
        this.goods_id = goods_id;
    }

    public int getBidding_id() {
        return bidding_id;
    }

    public void setBidding_id(int bidding_id) {
        this.bidding_id = bidding_id;
    }

    public int getBidding_status() {
        return bidding_status;
    }

    public void setBidding_status(int bidding_status) {
        this.bidding_status = bidding_status;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public double getBidding_price() {
        return bidding_price;
    }

    public void setBidding_price(double bidding_price) {
        this.bidding_price = bidding_price;
    }

    public Date getBidding_time() {
        return bidding_time;
    }

    public void setBidding_time(Date bidding_time) {
        this.bidding_time = bidding_time;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    @Override
    public String toString() {
        return "Bidding{" +
                "bidding_id=" + bidding_id +
                ", bidding_status=" + bidding_status +
                ", user_id=" + user_id +
                ", bidding_price=" + bidding_price +
                ", bidding_time=" + bidding_time +
                ", goods_id=" + goods_id +
                '}';
    }
}
